home *** CD-ROM | disk | FTP | other *** search
- public class singleLink extends ListNode {
- singleLink nextOne;
-
- singleLink() {
- super.data = null;
- this.nextOne = null;
- }
-
- singleLink(Object var1) {
- super(var1);
- this.nextOne = null;
- }
-
- void Link(Object var1) {
- ((singleLink)var1).nextOne = this;
- }
-
- void Link(Object var1, Object var2) {
- ((singleLink)var1).nextOne = this;
- }
-
- void SetNext(Object var1) {
- this.nextOne = (singleLink)var1;
- }
-
- ListNode next() {
- return this.nextOne;
- }
-
- void SetPrev(Object var1) {
- }
-
- ListNode prev() throws illegalListOpException {
- throw new illegalListOpException("No prev() in singly linked lists.");
- }
- }
-